package com.aos.erp.schools.remote;

import com.aos.erp.common.bean.PageBean;
import com.aos.erp.schools.model.sys.vo.SchoolUserVo;
import com.aos.erp.schools.remote.model.NoticeInfo;
import com.aos.erp.schools.remote.model.dto.NoticeDetailDTO;
import com.aos.erp.schools.remote.model.vo.NoticeConditionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

@FeignClient(name = "${erp-backend-server}", url = "${erp-backend-server-url}")
public interface AosService {

    /**
     * 查询驾校公告列表
     * @param condition
     * @return
     */
    @PostMapping(value = "/service/notice/list")
    PageBean<NoticeDetailDTO> listNotice(NoticeConditionVo condition);

    /**
     * 查询所有消息模板
     * @return
     */
    @PostMapping(value = "/service/notice/preview")
    NoticeInfo previewNotice(Long dataId);

    /**
     * 审核通过新增驾校用户
     * @param schoolUserVo
     * @return
     * @throws Exception
     */
    @PostMapping(value = "/service/rpcUser/addApply")
    Map<String, Object> addBeanSchool(SchoolUserVo schoolUserVo) throws Exception;
}
